package com.ithong;

import com.ithong.service.OrderService;
import com.spring.QinhonApplicationContext;

public class Test {

    public static void main(String[] args) {
        // 启动spring
        QinhonApplicationContext qinhonApplicationContext = new QinhonApplicationContext(AppConfig.class);

        //getBean()
        OrderService orderService = (OrderService) qinhonApplicationContext.getBean("orderService");

        orderService.test();
    }
}
